public class Demo09Income {

    protected double income;

    public Demo09Income(double income) {
        this.income = income;
    }

    public double getTax() {
        return income * 0.1;
    }
}
